package jp.ac.segakuen;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class OpenCampassMenuTable {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    
    @Persistent
    private Long ocDateId;

    @Persistent
    private String ocMenuId;
    
    public OpenCampassMenuTable(String ocdateid,String ocmenuid){
    	this.ocDateId=Long.valueOf(ocdateid);
    	this.ocMenuId=ocmenuid;
    }
    
    public Long getOcDateID(){
    	return ocDateId;
    }
    public String getStringOcDateID(){
    	return Long.toString(ocDateId);
    }
    public String getOcMenuID(){
    	return ocMenuId;
    }
    public String getStringOcMenuID(){
    	return ocMenuId;
    }
    public void setOcDateID(String s){
    	this.ocDateId=Long.valueOf(s);
    }
    
    public void setOcMenuID(String s){
    	this.ocMenuId=s;
    }
    public Long getId() {
        return id;
    }
    public String getStringId(){
    	return Long.toString(id);
    }
    
}
